package Socket;

import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

 public  class Clientpojo {
    public ObjectInputStream ois;
    public ObjectOutputStream oos;
    public Socket socket;
    public Integer close=0;
    public String name;
    public Clientpojo(Socket socket) {
        this.socket = socket;
        try {
            ois=new ObjectInputStream(socket.getInputStream());
            oos=new ObjectOutputStream(socket.getOutputStream());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

     @Override
     public String toString() {
         return "Clientpojo{" +
                 "ois=" + ois +
                 ", oos=" + oos +
                 ", socket=" + socket +
                 ", close=" + close +
                 ", name='" + name + '\'' +
                 '}';
     }
 }
